package com.imooc.pan.web.core.utils;

import java.util.UUID;


/**
 * 类功能描述:UUID工具类
 *
 * @Author: 张广焱
 * @Date: 2024-10-06  18:03:29
 * @Version: 1.0.0
 */
public class UUIDUtil {

    public static final String EMPTY_STR = "";
    public static final String HYPHEN_STR = "-";

    /**
     * 获取UUID字符串
     *
     * @return
     */
    public static String getUUID() {
        return UUID.randomUUID().toString().replace(HYPHEN_STR, EMPTY_STR).toUpperCase();
    }

}
